<?php



define('ROOT_PATH', dirname(__FILE__));



/**

 * 安装判断

 */

/*if (!file_exists(ROOT_PATH . "/data/install.lock") && is_dir(ROOT_PATH . "/install")){

	@header("location: install");

	exit;

}*/

#header('Access-Control-Allow-Origin:http://live.feiniaolive.com');

include(ROOT_PATH . '/eccore/ecmall.php');

#屏蔽所有错误

error_reporting(0);



#显示所有错误

#ini_set('display_errors','on');

#error_reporting(E_ALL);

/* 定义配置信息 */

ecm_define(ROOT_PATH . '/data/config.inc.php');

$ECMall = new ECMall();



/* 启动ECMall */

$ECMall->startup(array(

    'default_app'   =>  'default',

    'default_act'   =>  'index',

    'app_root'      =>  ROOT_PATH . '/app',

    'external_libs' =>  array(

        ROOT_PATH . '/includes/global.lib.php',

        ROOT_PATH . '/includes/libraries/time.lib.php',

        ROOT_PATH . '/includes/ecapp.base.php',

        ROOT_PATH . '/includes/plugin.base.php',

        ROOT_PATH . '/app/frontend.base.php',

        ROOT_PATH . '/includes/subdomain.inc.php',

    ),

));

?>

